package com.fsq.aop;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

/**
 * @author fsq
 * @date 2020/07/27
 */

@Component(value = "myAspect")
public class ExceptionAop {


    public String exceptionDispose(Throwable throwable) {
        // logs 记录异常
        throwable.printStackTrace();
        return "服务器繁忙";
    }
}
